package com.t282.crm.sale.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mr.Chen
 * @since 2021-05-19
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @ApiModel(value="Product对象", description="")
public class Product extends Model<Product> {

    private static final long serialVersionUID=1L;

    @TableId(value = "prod_id", type = IdType.AUTO)
    private Long prodId;

    private String prodName;

    private String prodType;

    private String prodBatch;

    private String prodUnit;

    private BigDecimal prodPrice;

    private String prodMemo;


    @Override
    protected Serializable pkVal() {
          return this.prodId;
      }

}
